package com.jian.mall.produce.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jian.mall.common.utils.PageUtils;
import com.jian.mall.produce.entity.AttrEntity;
import com.jian.mall.produce.vo.AttrGroupRelationVo;
import com.jian.mall.produce.vo.AttrRepsVo;
import com.jian.mall.produce.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author tainanle
 * @email 12345678@gmail.com
 * @date 2022-08-10 22:48:11
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId,String type);

    AttrRepsVo getInfoById(Long attrId);

    void updateVo(AttrVo attr);

    void saveInfo(AttrVo attr);

    void removeInfoByIds(List<Long> asList);

    List<AttrEntity> selectListByGroupId(Long groupId);

    void deleteByAttrIdAndRelationIds(AttrGroupRelationVo[] attrGroupRelationVos);

    PageUtils selectListNotRelation(Map<String, Object> params, Long groupId);

    List<Long> selectNeedSearchByAttrIds(List<Long> attrIds);
}

